package com.xiaocg.template.method;

public abstract class TemplateMethodModel {

    public final void cookProcess(){
        pourOil();
        hotOil();
        pourVegetables();
        pourSeasoning();
        stirFly();
    }

    public final void pourOil(){
        System.out.println("倒油");
    }

    public final void hotOil(){
        System.out.println("热油");
    }

    public abstract void pourVegetables();
    public abstract void pourSeasoning();

    public final void stirFly(){
        System.out.println("翻炒");
    }

}
